<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>D站</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="icon" th:href="@{/pagesResource/img/icon.png}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/animate.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/bootstrap.min.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/flatpickr.min.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/iconfont.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/style.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/responsive.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/color.css}">
</head>
<body>
<div class="wrapper hp_1">
    <!-- 引入头部 -->
    <div th:include="main/header :: header"></div>

    <!-- 左侧呼出功能菜单栏 -->
    <div th:include="main/sidebar :: sidebar"></div>

</div>
<!-- 精选视频 -->
<section class="vds-main">

    <div class="vidz-row">
        <div class="container" style="max-width: 1170px;">

            <div id="feature" class="vidz_sec">
                <h3>为你推荐</h3>
                <a th:href="@{/user/userHomePage(page=${recommentVideoList.current}+1)}"
                   class="btn btn-primary btn-xs">换一批</a>
                <div class="vidz_list">
                    <div class="row" style="display: flex;flex-direction: row;flex-wrap: wrap;">
                        <div class="col-lg-3 col-md-6 col-sm-6 col-6 full_wdth" th:each="videoInfo:${recommentVideoList.records}">
                            <div class="videoo">
                                <div class="vid_thumbainl">
                                    <a th:href="@{/video/videoPlayback} + '?videoId=' +${videoInfo.videoId} + '&isFree=' + ${videoInfo.isFree}" title="">
                                        <img th:if="${videoInfo.isFree} eq false" th:src="@{/images/sysImages/vip.png}" style="height: 30px; width: 30px;border-radius:50%">
                                        <img th:if="${videoInfo.isFree} eq true" th:src="@{/images/sysImages/free.png}" style="height: 30px; width: 30px;border-radius:50%">
                                        <img th:src="@{/video/getVideoCoverageImg/} + '?videoCoverImg=' + ${videoInfo.videoCoverImg}" th:alt="${videoInfo.videoTitle}">
                                        <span class="vid-time" th:text="${videoInfo.videoDuration/60} + ':' + ${videoInfo.videoDuration%60}">2:56</span>
                                    </a>
                                </div>
                                <div class="video_info">
                                    <h3><a href="video_playback_page.html" th:text="${videoInfo.videoTitle}">⚡伤心的人别偷大鸟⚡</a></h3>
                                    <h4><img th:src="@{/images/userIcon/} + ${videoInfo.userIcon}" style="width: 25px;height: 25px;border-radius:50%">&nbsp;&nbsp;<a href="Single_Channel_Home.html" th:text="${videoInfo.userName}">芜湖大司马</a></h4>
                                    <br>
                                    <small class="posted_dt" th:text="${#dates.format(videoInfo.createDate, 'yyyy-MM-dd')} + ','">2020-12-19 17:04:37,</small>
                                    <span th:utext="${videoInfo.videoViewNum} + '人看过'">209.2万 人看过</span>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="vidz-row" th:if="${noticedUserVideoList} != null">
        <div class="container" style="max-width: 1170px;">
            <div id="latest" class="vidz_sec">
                <h3>关注更新</h3>
                <div class="vidz_list">
                    <div class="row">
                        <div class="col-lg-3 col-md-6 col-sm-6 col-6 full_wdth" th:each="videoInfo:${noticedUserVideoList}">
                            <div class="videoo">
                                <div class="vid_thumbainl">
                                    <a th:href="@{/video/videoPlayback} + '?videoId=' +${videoInfo.videoId} + '&isFree=' + ${videoInfo.isFree}" title="">
                                        <img th:if="${videoInfo.isFree} eq false" th:src="@{/images/sysImages/vip.png}" style="height: 30px; width: 30px;border-radius:50%">
                                        <img th:if="${videoInfo.isFree} eq true" th:src="@{/images/sysImages/free.png}" style="height: 30px; width: 30px;border-radius:50%">
                                        <img th:src="@{/video/getVideoCoverageImgById/} + '?videoId=' + ${videoInfo.videoId}" th:alt="${videoInfo.videoTitle}">
                                        <span class="vid-time" th:text="${videoInfo.videoDuration/60} + ':' + ${videoInfo.videoDuration%60}">2:56</span>

                                    </a>
                                </div>
                                <div class="video_info">
                                    <h3><a href="video_playback_page.html" th:text="${videoInfo.videoTitle}">⚡伤心的人别偷大鸟⚡</a></h3>
                                    <h4><img th:src="@{/images/userIcon/} + ${videoInfo.userIcon}" style="width: 25px;height: 25px;border-radius:50%">&nbsp;&nbsp;<a href="Single_Channel_Home.html" th:text="${videoInfo.userName}">芜湖大司马</a></h4>
                                    <br>
                                    <small class="posted_dt" th:text="${#dates.format(videoInfo.createDate, 'yyyy-MM-dd')} + ','">2020-12-19 17:04:37,</small>
                                    <span th:utext="${videoInfo.videoViewNum} + '人看过'">209.2万 人看过</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 分类视频的显示 -->
    <div class="vidz-row" th:each="classificationInfo:${classificationInfoList}">
        <div class="container" style="max-width: 1170px;">
            <div th:id="'category' + ${classificationInfo.classificationId}" class="vidz_sec">
                <h3 th:text="${classificationInfo.classificationName}">娱乐</h3>
                <div class="vidz_list">
                    <div class="row">
                        <div class="col-lg-3 col-md-6 col-sm-6 col-6 full_wdth" th:each="videoInfo:${videoInfoList}" th:if="${videoInfo.videoClassId} eq ${classificationInfo.classificationId}">
                            <div class="videoo">
                                <div class="vid_thumbainl">
                                    <a th:href="@{/video/videoPlayback} + '?videoId=' +${videoInfo.videoId} + '&isFree=' + ${videoInfo.isFree}" title="">
                                        <img th:if="${videoInfo.isFree} eq false" th:src="@{/images/sysImages/vip.png}" style="height: 30px; width: 30px;border-radius:50%">
                                        <img th:if="${videoInfo.isFree} eq true" th:src="@{/images/sysImages/free.png}" style="height: 30px; width: 30px;border-radius:50%">
                                        <img th:src="@{/video/getVideoCoverageImgById/} + '?videoId=' + ${videoInfo.videoId}" th:alt="${videoInfo.videoTitle}">
                                        <span class="vid-time" th:text="${videoInfo.videoDuration/60} + ':' + ${videoInfo.videoDuration%60}">2:56</span>
                                    </a>
                                </div>
                                <div class="video_info">
                                    <h3><a href="video_playback_page.html" th:text="${videoInfo.videoTitle}">⚡伤心的人别偷大鸟⚡</a></h3>
                                    <h4><img th:src="@{/images/userIcon/} + ${videoInfo.userIcon}" style="width: 25px;height: 25px;border-radius:50%">&nbsp;&nbsp;<a href="Single_Channel_Home.html" th:text="${videoInfo.userName}">芜湖大司马</a></h4>
                                    <br>
                                    <small class="posted_dt" th:text="${#dates.format(videoInfo.createDate, 'yyyy-MM-dd')} + ','">2020-12-19 17:04:37,</small>
                                    <span th:utext="${videoInfo.videoViewNum} + '人看过'">209.2万 人看过</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<script type="text/javascript" src="https://bots.4paradigm.com/web/assets/ics-web-sdk-js.js"></script>
<script type="text/javascript">

    IcsWebSdkJs.init('https://bot.4paradigm.com/web/chat/24455/66da5f42-609b-4af2-99d1-dcb45b68c6a1')
</script>
<script th:src="@{/pagesResource/js/jquery.min.js}"></script>
<script th:src="@{/pagesResource/js/popper.js}"></script>
<script th:src="@{/pagesResource/js/bootstrap.min.js}"></script>
<script th:src="@{/pagesResource/js/flatpickr.js}"></script>
<script th:src="@{/pagesResource/js/script.js}"></script>
<script>
    /**
     * 个人主页
     * @param userId
     */
    function userMainPage(userId) {
        window.location.href = "/user/userMainPage?userId=" + userId;
    }
</script>

</body>
</html>
